package user;

import book.BookList;
import operation.IOPeration;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 涛
 * Date: 2023-09-16
 * Time: 17:42
 */
public abstract class User {
    protected String name;
    public User(String name) {
        this.name = name;
    }
    protected IOPeration[] ioPerations;
    public abstract int menu();

    public void doOperation(int choice, BookList bookList) {
        ioPerations[choice].work(bookList);
    }

}
